﻿<%@ Control Language="C#" AutoEventWireup="True" CodeBehind="tabOrders.ascx.cs" Inherits="CustomerService.OrderTab" %>
<%@ Register TagPrefix="csl" Src="~/tabOrderDetail.ascx" TagName="OrderDetailsTab" %>
<%@ Register TagPrefix="csl" Src="~/tabShipTo.ascx" TagName="ShipToDetailsTab" %>
<%@ Register TagPrefix="csl" Src="~/tabRefundsReturns.ascx" TagName="RefundsReturnsTab" %>
<%@ Register TagPrefix="csl" Src="~/tabTracking.ascx" TagName="TrackingTab" %>
<%@ Register TagPrefix="csl" Src="~/tabTransactions.ascx" TagName="TransactionsTab" %>

<asp:UpdatePanel ID="UpdatePanel4" runat="server">
<ContentTemplate>
<table cellpadding="0" cellspacing="0" style="vertical-align: top;">
    <tr>
        <td valign="top">
            <asp:Button ID="btnAddNewOrder" runat="server" Text="Add New Order" 
                onclick="btnAddNewOrder_Click" /><br />
            <asp:ListView ID="lvOrderList" runat="server" OnSelectedIndexChanged="OrderListSelectedIndexChanged" OnSelectedIndexChanging="OrderListSelectedIndexChanging">
                <LayoutTemplate>
                    <table>
                        <tr id="itemPlaceholder" runat="server"></tr>
                    </table>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr runat="server">
                        <td style="border-bottom: 1px solid black;">
                            <asp:LinkButton ID="btnSelectOrder" runat="server" Text='<%# Eval("OrderID") %>' CommandName="Select" /><br />
                            <%# Eval("OrderListInfo") %><br />
                        </td>
                    </tr>
                </ItemTemplate>
                <SelectedItemTemplate>
                    <tr id="Tr1" runat="server">
                        <td style="border-bottom: 1px solid black; background: yellow;">
                            <%# Eval("OrderID") %><br />
                            <%# Eval("OrderListInfo") %><br />
                        </td>
                    </tr>
                </SelectedItemTemplate>
            </asp:ListView>
        </td>
        <td valign="top">
            <asp:TabContainer ID="TabContainer1" runat="server">
                <asp:TabPanel ID="TabPanelDetails" runat="server" HeaderText="Details">
                    <ContentTemplate>
                        <csl:OrderDetailsTab ID="tabOrderDetail" runat="server" />
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanelShipping" runat="server" HeaderText="Shipping">
                    <ContentTemplate>
                        <csl:ShipToDetailsTab id="tabShipTo" runat="server" />
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanelTracking" runat="server" HeaderText="Tracking">
                    <ContentTemplate>
                        <csl:TrackingTab id="tabTracking" runat="server" />
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="tabPanelRefunds" runat="server" HeaderText="Refunds / Returns">
                    <ContentTemplate>
                        <csl:RefundsReturnsTab ID="tabRefundsReturns" runat="server" />
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="tabPanelTransactions" runat="server" HeaderText="Transactions">
                    <ContentTemplate>
                        <csl:TransactionsTab ID="tabTransactions" runat="server" />
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanelPromotions" runat="server" HeaderText="Promotions">
                </asp:TabPanel>
                <asp:TabPanel ID="TabPanelCampaigns" runat="server" HeaderText="Campaigns">
                </asp:TabPanel>
            </asp:TabContainer>
        </td>
    </tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
